/***************************************************************************
 *   Copyright (C) 2007 by Alexandre Masselot,,,   *
 *   alex@alex-laptop   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU Library General Public     *
 *   License along with this program; if not, write to the                 *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "aminoacidinstancerbasic.h"

namespace bol{

void AminoAcidInstancerBasic::setMasses(){
  double masses[29]={0,
                     71.03711,           //A
                     0,                  //B
                     103.00919,          //C
                     115.02694,          //D
                     129.04259,          //E
                     147.06841,          //F
                     57.02146,           //G
                     137.05891,          //H
                     113.08406,          //I
                     0,                  //J
                     128.09496,          //K
                     113.08406,          //L
                     131.04049,          //M
                     114.04293,          //N
                     0,                  //O
                     97.05276,           //P
                     128.05858,          //Q
                     156.10111,          //R
                     87.03203,           //S
                     101.04768,          //T
                     0,                  //U
                     99.06841,           //V
                     186.07931,          //W
                     0,                  //X
                     163.06333,          //Y
                     0,                  //Z
                     15.9949146+1.00783, //^
                     1.00783             //$
                     };

  for(unsigned char c=0; c<29; c++)
    AminoAcid::setChar2mass(c, masses[static_cast<int>(c)]);
  
}

}

